<template>
  <div>
    <div class="header">周末去哪儿</div>
    <div class="item" v-for="item in list" :key="item.id">
      <div class="img_content">
        <img class="img" :src="item.imgUrl"/>
      </div>

      <div class="content">
        <div class="title">{{item.title}}</div>
        <div class="desc">{{item.desc}}</div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'Week',
    props: {
      list: Array
    },
    data () {
      return {}
    }
  }
</script>

<style lang="stylus" type="text/stylus" rel="stylesheet/stylus" scoped>
  @import '~styles/varibles.styl'
  @import '~styles/mixins.styl'
  ///*.icons >>> .swiper-container*/

  .header
    height $headerHeight
    background-color #EEEEEE
    color #333
    padding-left 0.1rem
    font-size 0.16rem
    margin 0 auto
    line-height $headerHeight

  .item
    .img_content
      padding-bottom 38.6%
      overflow hidden
      height 0

      .img
        width 100%

    .content
      flex 1
      min-width: 0
      padding 0.05rem

      .title
        color #333333
        font-size .16rem

      .desc
        margin-top 0.05rem
        color #666
        ellipsis()
        font-size .12rem

</style>
